package com.tangula.web.kashine.repository;

import java.util.List;


import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import com.tangula.web.kashine.entity.StudentForm;
import com.tangula.web.kashine.entity.StudentOrganizationRefEntity;
@Repository
public interface StudentOrganizationRefRepository extends JpaRepository<StudentOrganizationRefEntity,String>{

	StudentOrganizationRefEntity findByStudentEmailAndOrgId(String stuId, String orgId);

	int findMoneyByOrgIdAndStudentEmail(String orgId, String studentId);

	List<StudentOrganizationRefEntity> findByStudentEmail(String studentId, Pageable page);

	List<StudentOrganizationRefEntity> findByOrgId(String orgId);

	List<StudentOrganizationRefEntity> findByStudentEmail(String studentId);

	StudentOrganizationRefEntity findByStudentEmailAndOrgId(StudentForm studentId, String orgId);

	List<StudentOrganizationRefEntity> findByStudentId(String condition);

	int countByOrgId(String orgId);

	StudentOrganizationRefEntity findByStudentIdAndOrgId(String student, String orgId);



}
